package com.Rpc远程调用简单版.client;

public class RpcClientUtil {

        static String address ="127.0.0.1";




        static Integer port = 8000;

        public static  RpcClientUtil   init(String address1,Integer port1){
            address = address1;
            port = port1;
            return null;
        }


        public  static Object  proxy(Class<?> clazz){
            RpcInvocationClientHandler rpcInvocationClientHandler = new RpcInvocationClientHandler(address,port);
            Object obj = rpcInvocationClientHandler.proxy (clazz);
            return  obj ;
        }
}

